Platform Explorer / Nuxeo Platform 5.8

Component org.nuxeo.ecm.platform.localconfiguration.search

Contributions

XML Source

<component name="org.nuxeo.ecm.platform.localconfiguration.search">

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="actions">

    <action id="SEARCH_CONFIGURATION"
      link="/incl/tabs/search_configuration.xhtml" order="100"
      label="action.view.types.configuration" icon="/icons/file.gif">
      <category>LOCAL_CONFIGURATION</category>
      <filter-id>manage</filter-id>
    </action>

  </extension>

  <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
    point="widgets">

    <widget name="advanced_search_selection" type="selectOneMenu">
      <labels>
        <label mode="any">label.local.configuration.advancedSearchView</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>slc:advancedSearchView</field>
      </fields>
      <selectOptions>
        <options value="#{contentViewService.getContentViewHeaders('ADVANCED_SEARCH')}"
          var="contentViewHeader" itemValue="#{contentViewHeader.name}"
          itemLabel="#{contentViewHeader.translateTitle ? messages[contentViewHeader.title] : contentViewHeader.title}" />
      </selectOptions>
    </widget>

  </extension>

  <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
    point="layouts">

    <layout name="search_configuration">
      <templates>
        <template mode="any">
          /layouts/layout_local_configuration_template.xhtml
        </template>
      </templates>
      <properties mode="any">
        <property name="layoutTemplateToInclude">/layouts/layout_default_template.xhtml</property>
        <property name="foldableBoxLabel">label.local.configuration.search</property>
        <property name="localConfigurationFacet">SearchLocalConfiguration</property>
        <property name="helpLabel">label.local.configuration.search.info</property>
        <property name="elementsToReRender">local_configuration_panel</property>
      </properties>
      <rows>
        <row>
          <widget>advanced_search_selection</widget>
        </row>
      </rows>
    </layout>

  </extension>

</component>